#include <QApplication>
#include <QGraphicsScene>
#include <QGraphicsRectItem>
#include <QGraphicsEllipseItem>
#include <QGraphicsSimpleTextItem>
#include <QGraphicsView>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QGraphicsScene scene;
    scene.addLine(-200,0,200,0);
    scene.addLine(0,-200,0,200);
    QGraphicsRectItem* rect = new QGraphicsRectItem(QRect(-25,-25,50,50));
    rect->setPos(25,25);
    rect->setRotation(45);
    QGraphicsRectItem* otherrect = new QGraphicsRectItem(QRect(-25,-25,50,50));
    otherrect->setPos(-25,-25);
    otherrect->setRotation(45);
    scene.addItem(otherrect);
    scene.addItem(rect);
    QGraphicsView view(&scene);
    view.show();
    return a.exec();
}
